package com.ssm.pre.dao;

import java.util.List;
import java.util.Map;

public interface RepairDao {
	// 查询故障类型列表
	public List<Map<String, Object>> queryRepairList(Map<String, Object> map) throws Exception;

	// 新增故障类型列表
	public int addRepair(Map<String, Object> map) throws Exception;

	// 修改故障类型列表
	public int editRepair(Map<String, Object> map) throws Exception;

	// 删除故障类型列表
	public int deleteRepairById(Map<String, Object> map) throws Exception;

	// 根据id查询
	public Map<String, Object> queryRepairById(Map<String, Object> map) throws Exception;
	
	public Map<String, Object> queryHouseId(Map<String, Object> map) throws Exception;
	
	List<Map<String, Object>> queryRoomNumByOneSelect(Map<String, Object> map) throws Exception;
	
	public int queryHouseIdByMap(Map<String, Object> map) throws Exception;
	
	// 新增报修单
	public int addWechatRepair(Map<String, Object> map) throws Exception;
	
	//查詢住户id
	public Map<String, Object> queryWechatFamilyId(Map<String, Object> map) throws Exception;
	
	//根据故障类别查询id
	public Map<String, Object> queryIdByfaultName(Map<String, Object> map) throws Exception;
	
	//根据faultId查询故障详情
	List<Map<String, Object>>  queryinfoNameByfaultId(Map<String, Object> map) throws Exception;
	
	//根据infoName查询id
	public Map<String, Object> queryIdByinfoName(Map<String, Object> map) throws Exception;
		
	//查询故障类型下拉列表
	List<Map<String, Object>>  queryfaultNameList(Map<String, Object> map) throws Exception;
	
	//根据faultName查找维修人员下拉列表
	List<Map<String, Object>>  queryserviceManNameByfaultName()throws Exception;
	
	//更新维修人目前的状态
	public int updateServiceManState(Map<String, Object> map) throws Exception;

	//查找报修记录
	List<Map<String, Object>>  queryrepairRecord(Map<String, Object> map)throws Exception;

	//根据RepairID查询维修工信息
	public Map<String, Object> queryServiceManByRepairID(Map<String, Object> params)throws Exception;

	
	
	
}
